<%@ page language="java"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>导入成功</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!-- 引用新样式 start -->
    <jsp:include page="../../jsp/public.jsp" flush="true"/>
    <!-- end -->
    <script type="text/javascript" src="<%=basePath%>js/new/jquery.min.js" charset="utf-8"></script>
</head>
<body>
<div class="col-lg-12">
    <div class="index-nav-right">
        <div class="index-nav-right-header"><span>当前位置 > 金型进度管理 > <b>批量导入</b></span></div>
    </div>
    <div class="index-table" style="margin-top: 20px;">
        <div class="pre-scrollable">
            <table class="table table-bordered" style="border: 0px solid red;">
                <thead style="">
                <tr class="table-thead">
                    <th>序号</th>
                    <th>部品番号</th>
                    <th>机种</th>
                    <th>厂家</th>
                    <th>难易度</th>
                    <th>所属客户</th>
                    <th>导入结果</th>
                    <th>原因</th>
                </tr>
                </thead>
                <tbody>
                <c:if test="${not empty msgList}">
                    <c:forEach items="${msgList }" var="model" varStatus="r">
                        <tr>
                            <td>${r.index+1 }</td>
                            <td>${model.modelCode }</td>
                            <td>${model.modelType }</td>
                            <td>${model.factory }</td>
                            <td>${model.modelLevel }</td>
                            <td>${model.customer }</td>
                            <td><b style="
                            <c:if test="${model.resultImport == '导入失败'}">color:red;</c:if>
                            <c:if test="${model.resultImport == '导入成功'}">color:green;</c:if>">
                                    ${model.resultImport}
                            </b>
                            </td>
                            <td>
                                <b style="
                                <c:if test="${model.resultImport == '导入失败'}">color:red;</c:if>
                                        ">
                                        ${model.reason }
                                </b>
                            </td>
                        </tr>
                    </c:forEach>
                </c:if>
                <c:if test="${empty msgList}">
                    <tr>
                        <td colspan="15"><label class="control-label text-center">
                            <b style="color: red;">${msg}</b></label>
                        </td>
                    </tr>
                </c:if>
                </tbody>
            </table>
        </div>
        <div class="col-sm-8 col-btn-12" style="margin-top: 20px;">
            <button type="button" class="btn btn-default"
                    onclick="window.location.href='<%=path%>/bus/plan/list'">
                返回
            </button>
        </div>
    </div>
</div>
</body>
</html>
